<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <meta name="_csrf" th:content="${_csrf.token}"/>
    <meta name="_csrf_header" th:content="${_csrf.headerName}"/>
    <title>维修申请</title>
    <link th:href="@{/static/plug-in/layui/css/layui.css}" rel="stylesheet" media="all"/>
    <link th:href="@{/static/resources/css/apply.css}" rel="stylesheet" media="all"/>
</head>
<body>
<div class="layui-container">
    <div class="layui-custom-header">
        <div class="layui-custom-start">
            <div class="layui-custom-step">
                <span class="layui-custom-span green">开始</span>
            </div>
        </div>
        <div class="layui-custom-line">
            <div class="layui-custom-step">
                <span class="layui-custom-span green"></span>
            </div>
        </div>
        <div class="layui-custom-item">
            <div class="layui-custom-step">
                <span class="layui-custom-span yellow">开始填报</span>
            </div>
            <div class="layui-custom-line">
                <span class="layui-custom-span red"></span>
            </div>
            <div class="layui-custom-step">
                <span class="layui-custom-span red">任务分配</span>
            </div>
            <div class="layui-custom-line">
                <span class="layui-custom-span red"></span>
            </div>
            <div class="layui-custom-step">
                <span class="layui-custom-span red">工单确认</span>
            </div>
            <div class="layui-custom-line">
                <span class="layui-custom-span red"></span>
            </div>
            <div class="layui-custom-step">
                <span class="layui-custom-span red">处理反馈</span>
            </div>
            <div class="layui-custom-line">
                <span class="layui-custom-span red"></span>
            </div>
            <div class="layui-custom-step">
                <span class="layui-custom-span red">处理评价</span>
            </div>
        </div>
        <div class="layui-custom-line">
            <div class="layui-custom-step stop ">
                <span class="layui-custom-span red"></span>
            </div>
        </div>
        <div class="layui-custom-step stop">
            <span class="layui-custom-span red">结束</span>
        </div>
    </div>
    <div class="layui-custom-body">
        <form class="layui-form layui-form-pane custom-form" method="post">
            <div class="layui-custom-form">
                <div class="bxyh-step1">

                </div>
                <blockquote class="site-text layui-elem-quote">报修人信息</blockquote>
                <div class="layui-custom-inline">
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">报修编号</label>
                        <div class="layui-input-block">
                            <div class="layui-input" th:text="${entity.lcbh}"></div>
                            <input type="hidden" name="lcbh" lay-verify="required"
                                   autocomplete="off" th:value="${entity.lcbh}" class="layui-input"/>
                        </div>
                    </div>
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">填报时间</label>
                        <div class="layui-input-block">
                            <div class="layui-input" th:text="${entity.bxsj}"></div>
                            <input type="hidden" name="bxsj" lay-verify="required"
                                   th:value="${entity.bxsj}" autocomplete="off" class="layui-input"/>
                        </div>
                    </div>
                </div>
                <div class="layui-custom-inline">
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">报修人</label>
                        <div class="layui-input-block">
                            <div class="layui-input" th:text="${user.name}"></div>
                            <input type="hidden" name="bxr" lay-verify="required"
                                   th:value="${entity.bxr}==null?${user.id}:${entity.bxr}"/>
                        </div>
                    </div>
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">姓名</label>
                        <div class="layui-input-block">
                            <input type="text" name="xm" lay-verify="required"
                                   maxlength="200" th:value="${entity.xm}==null?${user.name}:${entity.xm}"
                                   placeholder="姓名" autocomplete="off" class="layui-input"/>
                        </div>
                    </div>
                </div>
                <div class="layui-custom-inline">
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">院系/部门</label>
                        <div class="layui-input-block">
                            <div class="layui-input" th:text="${user.orgname}">
                            </div>
                            <input type="hidden" name="bmyx" lay-verify="required"
                                   maxlength="50" th:value="${entity.bmyx}==null?${user.orgid}:${entity.bmyx}"
                                   class="layui-input"/>
                        </div>
                    </div>
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">联系电话</label>
                        <div class="layui-input-block">
                            <input type="text" name="lxdh" lay-verify="required"
                                   maxlength="200" th:value="${entity.lxdh}"
                                   placeholder="联系电话" autocomplete="off" class="layui-input"/>
                        </div>
                    </div>
                </div>
                <blockquote class="site-text layui-elem-quote">服务信息</blockquote>
                <blockquote class="site-text layui-elem-quote">
                    1、请认真选择与实际报修事项一致的服务地点与分类;<br>
                    2、不同的维修信息分开填写，不可以在一个申请单中填写多个类别的维修事项;<br>
                    3、如果有图片或者更详细的文字说明，请上传附件;<br>
                    4、同一地点的相同维修事项，只可填写一次
                </blockquote>
                <div class="layui-custom-inline">
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">服务地点</label>
                        <div class="layui-input-block">
                            <select name="fwddly" lay-search lay-filter="fwddly">
                                <option value="" th:text="--请选择服务地点--"></option>
                                <option th:each="p:${lyqyList}" th:value="${p.id}" th:text="${p.qymc}"
                                        th:selected="${entity.fwddly == p.id}?true:false">
                                </option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">门牌号/室</label>
                        <div class="layui-input-block">
                            <input type="text" name="fwdd" lay-verify="required"
                                   maxlength="200" th:value="${entity.fwdd}"
                                   placeholder="门牌号/室" autocomplete="off" class="layui-input"/>
                        </div>
                    </div>
                </div>
                <div class="layui-custom-inline">
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">服务分类</label>
                        <div class="layui-input-block">
                            <select name="fwdl" lay-search lay-filter="fwdl">
                                <option value="" th:text="--请选择服务类别--"></option>
                                <option th:each="p:${fwdlList}" th:value="${p.id}" th:text="${p.fwdl}"
                                        th:selected="${entity.fwdl == p.id}?true:false">
                                </option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">服务类型</label>
                        <div class="layui-input-block">
                            <select name="bxlx" lay-search lay-filter="bxlx">
                                <option value="" th:text="--请选择服务类型--"></option>
                                <option th:if="${listFwfl}" th:each="p:${listFwfl}" th:value="${p.id}"
                                        th:text="${p.fwfl}"
                                        th:selected="${entity.bxlx == p.id}?true:false">
                                </option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-custom-inline">
                    <div class="layui-form-item ">
                        <label class="layui-form-label">故障描述</label>
                        <div class="layui-input-block">
                            <input name="gznr" type="hidden" id="gznr" th:value="${entity.gznr}"/>
                            <div class="layui-input gznr" id="fwdlmc">点击选择故障描述</div>
                        </div>
                    </div>
                </div>
                <div class="layui-custom-inline">
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">描述补充</label>
                        <div class="layui-input-block">
                             <textarea type="text" name="fwsm" lay-verify="required" maxlength="100"
                                       placeholder="请输入备注" autocomplete="off" class="layui-textarea"></textarea>
                        </div>
                    </div>
                </div>
                <div class="layui-custom-inline">
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">附件</label>
                        <div class="layui-input-block">
                            <div class="upload">
                                <a th:href="${entity.fj}" name="imagePc" id="customImage"
                                   th:style="${entity.fj!=null?'':'display:none'}"  class="imagePc layui-custom-img"
                                   th:text="${#strings.substringAfter(entity.fj,'file/')}"></a>
                                <button type="button" class="layui-btn" th:unless="${entity.fj!=null}" id="imagePc1">
                                    <i class="layui-icon">&#xe67c;</i>上传附件
                                </button>
                                <button type="button" class="layui-btn" th:if="${entity.fj!=null}" id="imagePc">
                                    <i class="layui-icon">&#xe67c;</i>修改附件
                                </button>
                                <input type="hidden" name="fj" th:value="${entity.fj}" id="imagePca"
                                       autocomplete="off" class="layui-input"/>
                            </div>
                            <input type="hidden" name="fj" lay-verify="required"
                                   maxlength="50" autocomplete="off"/>
                        </div>
                    </div>
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">是否填报过</label>
                        <div class="layui-input-block">
                            <input type="radio" name="sftbg" value="1" title="是"
                                   th:checked="${entity.sftbg ==null || entity.sftbg == 1}?true:false"/>
                            <input type="radio" name="sftbg" value="0" title="否"
                                   th:checked="${entity.sftbg == 0}?true:false"/>
                        </div>
                    </div>
                </div>
                <blockquote class="site-text layui-elem-quote">派工信息</blockquote>
                <div class="layui-custom-inline">
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">派工主管</label>
                        <div class="layui-input-block">
                            <input type="text" name="pgzg" lay-verify="required"
                                   maxlength="50"
                                   placeholder="派工主管" autocomplete="off" class="layui-input"/>
                        </div>
                    </div>
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">主管电话</label>
                        <div class="layui-input-block">
                            <input type="text" name="zgdh" lay-verify="required"
                                   maxlength="200"
                                   placeholder="主管电话" autocomplete="off" class="layui-input"/>
                        </div>
                    </div>
                </div>
                <div class="layui-custom-inline">
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">工程师</label>
                        <div class="layui-input-block">
                            <input type="text" name="clgcs" lay-verify="required"
                                   maxlength="50"
                                   placeholder="处理工程师" autocomplete="off" class="layui-input"/>
                        </div>
                    </div>
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">工程师电话</label>
                        <div class="layui-input-block">
                            <input type="text" name="userid" lay-verify="required"
                                   maxlength="200"
                                   placeholder="登录账号" autocomplete="off" class="layui-input"/>
                        </div>
                    </div>
                </div>
                <div class="layui-custom-inline">
                    <div class="layui-form-item ">
                        <label class="layui-form-label">派工时间</label>
                        <div class="layui-input-block">
                            <input type="text" name="pgsj" lay-verify="required"
                                   maxlength="50"
                                   placeholder="请输入派工时间" autocomplete="off" class="layui-input"/>
                        </div>
                    </div>
                </div>
                <blockquote class="site-text layui-elem-quote">工程师维修反馈</blockquote>
                <div class="layui-custom-inline">
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">是否使用物料</label>
                        <div class="layui-input-block">
                            <input type="radio" name="sfsywl" value="1" title="使用"
                                   th:checked="${entity.sfsywl ==null || entity.sfsywl == 1}?true:false"/>
                            <input type="radio" name="sfsywl" value="0" title="未使用"
                                   th:checked="${entity.sfsywl == 0}?true:false"/>
                        </div>
                    </div>
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">损坏类型</label>
                        <div class="layui-input-block">
                            <select name="shlx" lay-search lay-filter="shlx">
                                <option value="">---请选择损坏类型---</option>
                                <option value="1" th:selected="${entity.shlx==1}?true:false">自然损坏</option>
                                <option value="2" th:selected="${entity.shlx==2}?true:false">人为损坏</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-custom-inline">
                    <div class="layui-form-item ">
                        <label class="layui-form-label">处理时间</label>
                        <div class="layui-input-block">
                            <input type="text" name="gzsclsj" lay-verify="required"
                                   maxlength="50"
                                   placeholder="请输入处理时间" autocomplete="off" class="layui-input"/>
                        </div>
                    </div>
                </div>
                <blockquote class="site-text layui-elem-quote">物料使用信息</blockquote>
                <div class="custom-table">
                    <div class="layui-btn-group">
                        <button class="layui-btn layui-btn-sm layui-btn-normal layui-add" type="button"><i
                                class="layui-icon">&#xe654;</i>新增
                        </button>
                        <button class="layui-btn layui-btn-sm layui-btn-normal layui-update" type="button"><i
                                class="layui-icon">&#xe642;</i>编辑
                        </button>
                        <button class="layui-btn layui-btn-sm layui-btn-normal layui-open" type="button"><i
                                class="layui-icon">&#xe63c;</i>查看
                        </button>
                        <button class="layui-btn layui-btn-sm layui-btn-normal layui-del" type="button"><i
                                class="layui-icon">&#xe640;</i>删除
                        </button>
                    </div>
                    <table class="layui-table">
                        <tr>
                            <th style="width: 40px;"><input name="" lay-skin="primary" lay-filter="allChoose"
                                                            class="allChoose" type="checkbox"/></th>
                            <th>物料名称</th>
                            <th>物料分类</th>
                            <th>使用数量</th>
                            <th>工时</th>
                            <th>工时费</th>
                            <th>材料费</th>
                            <th>合计</th>
                            <th>备注</th>
                        </tr>
                    </table>
                </div>
                <div class="layui-custom-inline">
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">处理说明</label>
                        <div class="layui-input-block">
                             <textarea type="text" name="fwsm" lay-verify="required" maxlength="100"
                                       placeholder="请输入备注" autocomplete="off" class="layui-textarea"></textarea>
                        </div>
                    </div>
                </div>
                <div class="layui-custom-inline">
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">处理附件</label>
                        <div class="layui-input-block">
                            <input type="text" name="userid" lay-verify="required"
                                   maxlength="200"
                                   placeholder="登录账号" autocomplete="off" class="layui-input"/>
                        </div>
                    </div>
                </div>
                <blockquote class="site-text layui-elem-quote">客户评价信息</blockquote>
                <div class="layui-custom-inline">
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">评价</label>
                        <div class="layui-input-block">
                            <input type="text" name="name" lay-verify="required"
                                   maxlength="50"
                                   placeholder="请输入用户姓名" autocomplete="off" class="layui-input"/>
                        </div>
                    </div>
                    <div class="layui-form-item layui-custom-form-item">
                        <label class="layui-form-label">办理人</label>
                        <div class="layui-input-block">
                            <input type="text" name="userid" lay-verify="required"
                                   maxlength="200"
                                   placeholder="登录账号" autocomplete="off" class="layui-input"/>
                        </div>
                    </div>
                </div>
                <div class="layui-custom-inline">
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">评价意见</label>
                        <div class="layui-input-block">
                             <textarea type="text" name="fwsm" lay-verify="required" maxlength="100"
                                       placeholder="请输入备注" autocomplete="off" class="layui-textarea"></textarea>
                        </div>
                    </div>
                </div>
                <div class="layui-custom-button">
                    <div class="layui-btn layui-btn-normal ">保存</div>
                    <div class="layui-btn layui-btn-normal ">提交</div>
                </div>
            </div>
        </form>
    </div>
</div>
<!--Layui -->
<script th:src="@{/static/plug-in/layui/layui.js}" media="all"></script>
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script th:src="@{/static/resources/js/apply.js}" type="text/javascript" media="all"></script>
</body>
</html>